package dao;

import beans.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User login(@Param(value="userId")String userId, @Param(value="userPassword")String userPassword);

    List<User> selectList();

    List<User> selectSelective(@Param(value="selectText") String selectText, @Param(value="inputText")String inputText);

    int deleteByPrimaryKey(Integer userNumber);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userNumber);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int count();
}
